package com.csdj.t309springboot.mapper;

import com.csdj.t309springboot.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper2 {
    @Select("select id,account,password from user")
    List<User> findAllUser();

    @Select("select id,username,status from user where username =#{username} and password=#{password}")
    User login();
}



